package com.sxhalo.fsms.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.sxhalo.fsms.domain.UserPatrolRecord;

public interface UserPatrolRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserPatrolRecord record);

    int insertSelective(UserPatrolRecord record);

    UserPatrolRecord selectByPrimaryKey(Integer id);
    UserPatrolRecord selectByWhere(@Param("where")String where);
    int updateByPrimaryKeySelective(UserPatrolRecord record);

    int updateByPrimaryKey(UserPatrolRecord record);
    
    int getMaxId();
    
    int getCount(@Param("where")String where);

    List<UserPatrolRecord> findWhereList(@Param("where")String where, @Param("order")String order);

    List<UserPatrolRecord> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    Map<String,Object> getRecentRecord(@Param("where")String where);

}